/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
    int N,x,y,k,i,a,b;
    cin>>N;
    for (i=1;i<=N;i++){
    a=-100;
    b=100;
    x=a+rand()%(b-a+1);
    y=a+rand()%(b-a+1);
    if ((x>=-7) and (x<=5) and (y>=-8) and (y<=5)){
    k++;}}
    cout<<"Количество выстрелов: "<<N<<endl;
    cout<<"Количество попаданий: "<<k;

    return 0;
}
